ifeq ($(KERNELRELEASE),)     
PWD := $(shell pwd)   
modules:            
	$(MAKE) -C /lib/modules/`uname -r`/build modules M=$(PWD) modules  
modules_install:  
	$(MAKE) -C /lib/modules/`uname -r` M=$(PWD) modules_install  
clean:  
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers  
.PHONY: modules modules_install clean  
else
MODULE_NAME := tty
obj-m := $(MODULE_NAME).o 
$(MODULE_NAME)-objs := virtual_tty.o lib_tty.o
endif  

